package com.yksj.healthtalk.adapter;

import java.util.ArrayList;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;

import com.yksj.healthtalk.ui.R;

public class MySalonListAdapter extends BaseAdapter {
	ArrayList<Object> data;
	private Context context;
	LayoutInflater inflater;
	
	public MySalonListAdapter(ArrayList<Object> data, Context context) {
		super();
		this.data = data;
		this.context = context;
		inflater = LayoutInflater.from(context);
	}

	@Override
	public int getCount() {
		return 0;
	}

	@Override
	public Object getItem(int position) {
		return null;
	}

	@Override
	public long getItemId(int position) {
		return 0;
	}

	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		viewHolder holder = null;
		if(convertView==null||convertView.getTag() == null){
			holder = new viewHolder();
			convertView = inflater.inflate(R.layout.my_salon_list_iterm, null);
			holder.image=(ImageView) convertView.findViewById(R.id.salon_icon);
			holder.name_tv= (TextView) convertView.findViewById(R.id.salon_name);
			holder.dengji= (ImageView) convertView.findViewById(R.id.v_biaoji);
			holder.money= (ImageView) convertView.findViewById(R.id.money);
			holder.note_tv=(TextView)convertView.findViewById(R.id.person_num);
			}
		return null;
	}
	
	public class viewHolder {
		ImageView image; // 头像
		TextView name_tv; // 名称
		TextView note_tv; // 简介
		ImageView money;//多美币
		TextView number;//人数
		ImageView dengji ;//等级
		boolean isdoctor = true;//是否是医师沙龙
		boolean isGuanZhu;
	}

}
